package com.miyuan.wm.enums;

/**
 * @ClassName ExceptionCodeEnum
 * @Description 错误码枚举类
 */
public enum ExceptionCodeEnum {

    REQUEST_PARAM_ERROR(100001, "请求参数不正确"),
    TOKEN_ERROR(100002, "用户未登录"),
    USER_NO_UNAUTHORIZED_ERROR(100003, "没有权限"),
    SYS_ERROR(100004, "系统未知异常"),
    USERNAME_OR_PASSWORD_ERROR(100005, "用户名或密码错误"),
    UNKNOWN_ACCOUNT_EXCEPTION(100006, "账户不存在"),
    THE_TWO_PASSWORDS_DO_NOT_MATCH(100007, "两次密码不一致"),
    NONE_RECORD_STORAGE(100008, "暂无库存"),
    LESS_THAN_STORAGE_QUANTITY(100009, "库存数少于出库数"),
    LOGIN_ERROR(100005, "验证未通过"),

    ;

    private Integer code;

    private String msg;

    ExceptionCodeEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }


}
